<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="home" value="${pageContext.request.contextPath}" />
<jsp:include page="../../common/common.jsp"></jsp:include>
<div class="layui-side layui-bg-black">
	<div class="layui-side-scroll">
		<ul class="layui-nav layui-nav-tree" lay-filter="test">
			<li class="layui-nav-item layui-nav-itemed"><a class=""
				href="javascript:;">基础模块<span class="layui-nav-more"></span></a>
				<dl class="layui-nav-child">
					<dd>
						<a href="javascript:;"
							data-src="${home}/api/admin/basic/account/routeToUserList.do"
							target="_self" id="_findAll">用户管理</a>
					</dd>
					<dd>
						<a href="javascript:;"
							data-src="${home}/api/admin/business/article/routeToArticleList.do"
							target="_self" id="_findAllArticle">文章管理</a>
					</dd>
					<dd>
						<a href="javascript:;"
							data-src="${home}/api/admin/sys/log/routeToLogList.do"
							target="_self">日志管理</a>
					</dd>
					<dd>
						<a href="javascript:;"
							data-src="${home}/api/admin/basic/statistic/routeToStatistic.do"
							target="_self">数据分析</a>
					</dd>
				</dl></li>
			<li class="layui-nav-item"><a href="javascript:;">解决方案<span
					class="layui-nav-more"></span></a>
				<dl class="layui-nav-child">
					<dd>
						<a href="javascript:;" data-src="javascript:;">农产品</a>
					</dd>
					<dd>
						<a href="javascript:;" data-src="javascript:;">社交产品</a>
					</dd>
				</dl></li>
			<span class="layui-nav-bar"></span>
		</ul>
		<input type="hidden" id="_permission" value="${permission}" />
	</div>
</div>

<script>

	var permissionList = $('#_permission').val().split(',');
	for (plist in permissionList) {
		if (!(Z.findOne(permissionList, "findAll"))) {
			$('#_findAll').attr('data-src', 'javascript:;');
		}
		if (!(Z.findOne(permissionList, "findAllArticle"))) {
			$('#_findAllArticle').attr('data-src', 'javascript:;');
		}
	}
	
	
</script>